package edu.fashion.service.product;

import java.util.List;

import edu.fashion.dao.product.SelectPhotoDaoImpl;
import edu.fashion.dao.product.SelectProductAllDaoImpl;
import edu.fashion.model.Product;
/*
 * lxf
 */
public class ProductSelectAllServiceImpl {
	SelectPhotoDaoImpl spd=new SelectPhotoDaoImpl();
	SelectProductAllDaoImpl spad=new SelectProductAllDaoImpl();
	public List<Product> selectAllProduct() {
		List<Product> products=null;
		products=spad.selectPADI();
		for(int i=0;i<products.size();i++) {
			products.get(i).setProductPhoto(spd.selectPhoto(products.get(i).getProductId()));
		}
		return products;
	}
}
